import request from "@/utils/request";

export async function getOnsiteSupportByPage(params: any) {
    return request('/api/sales/getOnsiteSupportByPage', {
        method: 'POST',
        data: params,
    });
}

export async function addOnsiteSupport(params: any) {
    return request('/api/sales/addOnsiteSupport', {
        method: 'POST',
        data: params,
    });
}

export async function updateOnsiteSupport(params: any) {
    return request('/api/sales/updateOnsiteSupport', {
        method: 'POST',
        data: params,
    });
}

export async function delOnsiteSupport(params: any) {
    return request('/api/sales/delOnsiteSupport', {
        method: 'POST',
        data: params,
    });
}

export async function getOnsiteSupportById(params: any) {
    return request('/api/sales/getOnsiteSupportById', {
        method: 'POST',
        data: params,
    });
}

export async function onsiteSupportExport(params: any) {
    return request('/api/sales/onsiteSupportExport', {
        method: 'POST',
        responseType: 'blob',
        data: params,
    });
}